from twisted.internet import reactor, defer, protocol
from eDIP43a_Display import eDIP43a_Display
#from eDIP34A_async import eDIP43A_Async
#---------------------------------------------------------------------------#
# Client Factories
#---------------------------------------------------------------------------#
class eDIP43A_Factory(protocol.ReconnectingClientFactory):
   ''' Simple client protocol factory '''

   protocol = eDIP43a_Display

   def __init__(self, framer, endpoint):
      ''' Remember things necessary for building a protocols '''
      self.framer = framer
      self.endpoint = endpoint

   def buildProtocol(self, _):
      ''' Create a protocol and start the reading cycle '''
      proto = self.protocol(self.framer)
      proto.factory = self
      return proto   
   
   